package com.dgz.csmall.commons.ex;

import com.dgz.csmall.commons.web.ServiceCode;
import lombok.Getter;

/**
 * @Author duguozheng
 * @Date 2023/05/18  17:21
 * @Description 自定义service异常类
 * @Version 1.0
 */
public class ServiceException extends RuntimeException {

    @Getter
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }
}
